# include <cstdio>
# include <iostream>
# define ll long long
using namespace std;
inline ll get_num() {
	ll k = 0, f = 1;
	char c = getchar();
	for(; !isdigit(c); c = getchar()) if(c == '-') f = -1;
	for(; isdigit(c); c = getchar()) k = k * 10 + c - '0';
	return k * f;
}
inline ll get_line(ll x) {
	ll k = 1;
	while(x >> 1) {
		x >>= 1;
		k++;
	}
	return k;
}
int main() {
//	freopen("ming.in", "r", stdin);
//	freopen("ming.out", "w", stdout);
	ll n = get_num();
	while(n--) {
		ll x = get_num();
		printf("%lld\n", get_line(x));
	}
}
